﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Components_AboutCompany : System.Web.UI.UserControl
{
    DBDataContext db;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            db = new DBDataContext();
            var getData = (from a in db.Introductions
                           where a.Status == 'A'
                                   && a.Type == "C"
                           select new
                           {
                               Content = a.Content
                           }).FirstOrDefault();
            if (getData != null)
            {
                div_Info.InnerHtml = getData.Content;
            }
        }
    }
}